import com.service.GoodsService03;
import com.service.GoodsService05;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试事务的超时回滚
 */
public class TxTest05 {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext cont = new ClassPathXmlApplicationContext("tx_ioc.xml");
        GoodsService05 goodsService = cont.getBean(GoodsService05.class);
        goodsService.buyGoodsByTxOvertime(1,1,1);
    }

}
